package com.springbootdf.mapper;

import com.springbootdf.entity.JudgeGame;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wy
 * @since 2022-08-20
 */
public interface JudgeGameMapper extends BaseMapper<JudgeGame> {

    @Delete("delete from `hfuu-df`.judge_game where game_id = #{gameId}")
    int deleteByRoleId(@Param("gameId") Integer gameId);
    List<String> findjudges(@Param("id") Integer id);
}
